package com.zzzy.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;

import org.apache.log4j.Logger;


public class OrderSchedule {
	Logger logger = Logger.getLogger(this.getClass());
	
	private int count = 0;
	
	public OrderSchedule() {
		TimerTask task = new TimerTask() {
			@Override
			public void run() {
				logger.debug( " Do OrderSchedule Count: " + count++);
			};
		};
		
		Timer timer = new Timer();
		long delay = 0;
		long period = 5 * 1000;
		timer.scheduleAtFixedRate(task, delay, period);
	}
	

}
